<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'modifyProject.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="/estate/js/calender.js "  ></script>
   <script type="text/javascript" src="/estate/js/lhgcore.js"></script>
	<script type="text/javascript" src="/estate/js/lhgcalendar.js"></script>
	<script type="text/javascript">
		J.califrm = true;
		function gotoList()
		{
			window.location.href="billingAction.action?method=list";
		}
	</script>
  </head>
  
  <body>
       <form action="billingAction.action?method=update&modifyId=${modifyList.id}" method="post" >
    	<table width="649" border="1">
    	<tr>
    	<td colspan="4" class="tableTitle">  新建项目  </td>
    	</tr>
  <tr>
    <td width="12%">发票编号</td>
    <td width="18%"><input type="text" name="billNum" id="billNum" value="${modifyList.billNum}" /></td>
    <td width="12%">发票类型</td>
    <td width="18%"><input type="text" name="billCatagory" id="billCatagory" value="${modifyList.billCatagory}" /></td>
  </tr>
  <tr>
    <td>项目所属类别</td>
    <td><select id="proCatagory" name="proCatagory" onchange="catagoryChange()">
    	<option value="${modifyList.proCatagory}">${modifyList.proCatagoryName}</option>
			<optgroup label="请选择项目种类">
				<option value="1">
					造价咨询
				</option>
				<option value="2">
					招标代理
				</option>
				<option value="3">
					全过程管理
				</option>
			</optgroup>
		</select></td>
    <td>项目名称</td>
    <td><select id="proId" name="proId" style="width: 100px">
    <option value="${modifyList.proId}">${modifyList.proName}</option>
    </select></td>
  </tr>
  <tr>
    <td>开票金额（元）</td>
    <td><input type="text" name="billMoney" id="billMoney" value="${modifyList.billMoney}" /></td>
  </tr>
   <tr>
    <td>开票人</td>
    <td><select name="billUserId" id="billUserId">
     <option value="${billUser.id}">${billUser.name}</option>
    <c:forEach var="billUserSelect" items="${billUserSelect}">
    <option value="${billUserSelect.value}">${billUserSelect.key}</option>
  </c:forEach>
    </select></td>
    <td>开票日期</td>
    <td><input type="text" name="billDate" id="billDate" value="${modifyList.billDate}" onclick="J.calendar.get();" readonly="readonly"/></td>
  </tr>
 
  <tr>
  	<td></td>
  	<td><input type="submit" name="submitButton" id="submitButton" value="确认修改" /></td>
	<td><input type="button" onclick="gotoList()" name="resetButton" id="resetButton" value="返回列表" /></td>
	<td></td>
  </tr>
</table>
    </form>
  </body>
</html>
